// 部门管理
import {
    ajaxPost
} from '@/utils/data/request'


// 全部
export function tree() {
    return ajaxPost("auth/section-list", null, {
        cookies: ['yard_sn']
    })
}

// 全部
export function staff() {
    return ajaxPost("auth/section-tree", null, {
        cookies: ['yard_sn']
    })
}

// 编辑
export function edit(params: any) {
    return ajaxPost("auth/section-edit", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 新增
export function add(params: any) {
    return ajaxPost("auth/section-create", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 删除
export function del({ section_sn }: any) {
    return ajaxPost("auth/section-delete", { section_sn }, { successMessage: true, cookies: ['yard_sn'] })
}
